package com.example.userlogincenter.userCenter.service;

import com.example.userlogincenter.userCenter.entity.CenterUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.userlogincenter.userCenter.pojo.RoleVo;
import com.example.userlogincenter.userCenter.pojo.tokenUser;
import com.example.userlogincenter.userCenter.pojo.userLoginVo;
import com.example.userlogincenter.userCenter.pojo.userRegisterVo;

import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tangshen
 * @since 2022-11-02
 */
public interface ICenterUserService extends IService<CenterUser> {

    boolean saveUser(userRegisterVo registerUser) throws UnsupportedEncodingException;

    tokenUser findUser(String phonenumber);

    CenterUser getOneByPhone(String phonenumber);

    RoleVo getRoleByUserId(Long roleId);

    CenterUser getUserById(Long id);

    boolean getVerificationCode(String phoneNumber) throws Exception;
}
